home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / View Options / ConformsToPaneSize.h < prev    next >
Text File  |  2000-06-23  |  778b  |  40 lines

  1. // ConformsToPaneSize.h
  2.  
  3. #ifndef ConformsToPaneSize_h
  4. #define ConformsToPaneSize_h
  5.  
  6. #ifndef UPoint32_h
  7. #include "UPoint32.h"
  8. #endif
  9. #ifndef DrawsSpontaneously_h
  10. #include "DrawsSpontaneously.h"
  11. #endif
  12.  
  13. class AcceptsConformanceToSize;
  14.  
  15. class ConformsToPaneSize: virtual public DrawsSpontaneously
  16.   {
  17.     friend class AcceptsConformanceToSize;
  18.     
  19.     private:
  20.         AcceptsConformanceToSize *conformTo;
  21.  
  22.         UPoint32 paneSize;
  23.         bool paneSizeKnown;
  24.     
  25.         // not implemented:
  26.             ConformsToPaneSize( const ConformsToPaneSize& );
  27.             void operator=( const ConformsToPaneSize& );
  28.     
  29.     protected:
  30.         ConformsToPaneSize();
  31.         ~ConformsToPaneSize();
  32.  
  33.         virtual void PaneSizeChanged();
  34.     
  35.         bool PaneSizeKnown() const            { return paneSizeKnown; }
  36.         UPoint32 PaneSize() const            { return paneSize; }
  37.   };
  38.  
  39. #endif
  40.